﻿// -----------------------------------------------------------------------
// Copyright (c) Microsoft Corporation.  All rights reserved.
// -----------------------------------------------------------------------
using System;
using System.Reflection;
using Microsoft.Internal;

namespace System.ComponentModel.Composition.ReflectionModel
{
    internal class ReflectionParameter : ReflectionItem
    {
        private readonly ParameterInfo _parameter;

        public ReflectionParameter(ParameterInfo parameter)
        {
            Assumes.NotNull(parameter);

            _parameter = parameter;
        }

        public override string Name
        {
            get { return _parameter.Name; }
        }

        public override Type ReturnType
        {
            get { return _parameter.ParameterType; }
        }

        public ParameterInfo UnderlyingParameter
        {
            get { return _parameter; }
        }
    }
}
